<!DOCTYPE html>
<html>
<head><title>注册</title>
    <meta name="content-type"; charset="UTF-8">
</head><body>
<div class="content" align="center">
    <div class="header"> <h1>超级会员注册页面</h1> </div>
    <div class="middle">
        <form action="superregisteraction.php" method="post"> <table border="0">
                <tr> <td>用户名：</td>
                    <td><input type="text" id="id_name" name="username" required="required"></td>
                </tr> <tr>
                    <td>密   码：</td> <td><input type="password" id="password" name="password"
                                               required="required"></td>
                </tr> <tr>
                    <td>重复密码：</td> <td><input type="password" id="re_password"
                                              name="re_password" required="required"></td> </tr> <tr>
                    <td>性别：</td> <td> <input type="radio" id="sex" name="sex" value="man">男 <input type="radio" id="sex" name="sex" value="woman">女 </td> </tr> <tr>
                    <td>QQ：</td> <td><input type="text" id="qq" name="qq" required="required"></td> </tr> <tr>
                    <td>Email：</td> <td><input type="email" id="email" name="email" required="required"></td> </tr> <tr>
                    <td>电话：</td> <td><input type="text" id="phone" name="phone" required="required"></td> </tr> <tr>
                    <td>地址：</td> <td><input type="text" id="address" name="address" required="required"></td> </tr>
                <tr> <td colspan="2" align="center" style="color:red;font-size:10px;">
                        <?php
                        $err = isset($_GET["err"]) ? $_GET["err"] : "";
                        switch ($err) {
                            case 1:
                                echo "用户名已存在！";
                                break;

                            case 2:
                                echo "密码与重复密码不一致！";
                                break;

                            case 3:
                                echo "注册成功！";
                                break;
                        }
                        ?>
                    </td> </tr> <tr> <td colspan="2" align="center">
                        <input type="submit" id="register" name="register" value="注册">
                        <input type="reset" id="reset" name="reset" value="重置"> </td></tr>
                <tr> <td colspan="2" align="center">
                        如果已有账号，快去<a href="superlogin.php">登录</a>吧！ </td> </tr> </table> </form> </div>
  </div></body></html>
